Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 8a7621a2f3e44ce42b366a31362d9200d230d50d


Parents : ccc83a5
Author : Adam Novak <interfect@gmail.com>
Date : 2022-02-17T16:05:44Z

Don't close SPI FD when stopping radio

Changes

1 files changed, 1 insertions(+), 4 deletions(-)

M LoRa.cpp +1 -4

Diff

diff --git a/LoRa.cpp b/LoRa.cpp
index f07e402..f14ad14 100644
--- a/LoRa.cpp
+++ b/LoRa.cpp
@@ -186,10 +186,7 @@ void LoRaClass::end()
// stop SPI
SPI.end();
#elif LIBRARY_TYPE == LIBRARY_C
- if (_fd >= 0) {
- close(_fd);
- _fd = -1;
- }
+ // Don't do anything. We need to keep things open for restart.
#endif
_spiBegun = false;
}


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────